<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
<meta charset="UTF-8"></meta>
<title>springbootTest</title>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
	<div th:replace="~{fragments/footer :: footer}">...</div>
</body>
<script type="text/javascript">
function save(){
	var name = $("#name").val();
	var url = "/student/save";
	$.ajax({
		url:url,
		type:"POST",
		data:{
			name:name
		},
		success:function(r){
			alert('保存成功');
		}
	});
}
</script>
</html>